<html><head>
        <link href="<?php echo base_url('assets/css/formpenduduk.css'); ?>" rel="stylesheet" type="text/css">
<title>Laporan Data Penduduk</title>
</head>
<body>
<table width="900" border="0" align="center">
  <tr>
    <td colspan="10" class="trheader">Laporan Data Penduduk</td>
  </tr>
  <tr>
    <td colspan="10" class="jeda">&nbsp;</td>
  </tr>
  <tr>
    <td width="94" bordercolor="#666666"><div align="center"><strong>NIK</strong></div></td>
    <td width="174" bordercolor="#666666"><div align="center"><strong>Nama</strong></div></td>
    <td width="79" bordercolor="#666666"><div align="center"><strong>Tempat Lahir</strong></div></td>
    <td width="93" bordercolor="#666666"><div align="center"><strong>Tanggal Lahir</strong></div></td>
    <td width="56" bordercolor="#666666"><div align="center"><strong>Jenis Kelamin</strong></div></td>
    <td width="194" bordercolor="#666666"><div align="center"><strong>Alamat</strong></div></td>
    <td width="46" bordercolor="#666666"><div align="center"><strong>Umur</strong></div></td>
    <td width="72" bordercolor="#666666"><div align="center"><strong>Status </strong></div></td>
    <td colspan="2" bordercolor="#666666"><div align="center"><strong>Aksi</strong></div></td>
  </tr>
  <tr>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td width="51" bordercolor="#666666"><div align="center"><a href="#">Edit</a></div></td>
    <td width="58" bordercolor="#666666"><div align="center"><a href="#"></a>Hapus</div></td>
  </tr>
  <tr>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
    <td bordercolor="#666666">&nbsp;</td>
  </tr>
  <?php 
  if (isset($data)){
      foreach ($data->result() as $data_penduduk){
          echo '<tr>';
          echo '<td>'.$data_penduduk->nik.'</td>';
            echo '<td>'.$data_penduduk->nama.'</td>';
            echo '<td>'.$data_penduduk->tempat_lahir.'</td>';
            echo '<td>'.$data_penduduk->tgl_lahir.'</td>';
            echo '<td>'.$data_penduduk->alamat.'</td>';
            echo '<td>umur</td>';
            echo '<td>'.$data_penduduk->status.'</td>';
          echo '</tr>';         
      }
  }
  ?>
</table>
<br>
<table width="289" border="0" align="center">
  <tr>
    <td colspan="2" class="jeda">Data Tercatat</td>
  </tr>
  <tr>
    <td width="110">Jumlah Penduduk</td>
    <td width="169">: </td>
  </tr>
  <tr>
    <td>Laki-laki</td>
    <td>:</td>
  </tr>
  <tr>
    <td>Perempuan</td>
    <td>:</td>
  </tr>
</table>

</body>
</html>
